<template>
  <div id="app">
    <header>
      <img alt="Vue logo" src="./assets/logo.png">
      <h1>WebSocket通信演示</h1>
    </header>
    <main>
      <WebSocketChat />
    </main>
  </div>
</template>

<script>
import WebSocketChat from './components/WebSocketChat.vue'

export default {
  name: 'App',
  components: {
    WebSocketChat
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

header img {
  height: 80px;
  margin-bottom: 20px;
}

header h1 {
  font-size: 2em;
  color: #333;
  margin: 0;
}

main {
  width: 100%;
}
</style>
